import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

// 引入libs
import oilUni from './oil-uni/index.js'
Vue.use(oilUni)

// 全局混入
import mixin from './common/mixin/mixin'
Vue.mixin(mixin)

// 引入store
import store from './store'
Vue.prototype.$store = store

// 注册全局组件
import Test from '@/components/Test.vue'
Vue.component('Test', Test)

// 引入封装的方法
import {
  msg,
  isLogin,
  debounce,
  throttle,
  prePage,
  date,
  getMpCode,
} from '@/common/js/util'

Vue.prototype.$util = {
  msg,
  isLogin,
  debounce,
  throttle,
  prePage,
  date,
  getMpCode,
}

const app = new Vue({
  ...App,
})
app.$mount()
